<?php $view->extend('Site1Bundle::layout') ?>
<table border="1">
    <thead>
        <th>Роли</th>
        <th colspan="<?php echo count($resources); ?>">Ресурсы</th>
    </thead>
    <tr>
        <td>&nbsp;</td>
        <?php foreach($resources as $resource) : ?>
        <td><?php echo $resource; ?></td>
        <?php        endforeach; ?>
    </tr>
    <?php echo $content; ?>
</table>